<?php

namespace App\Http\Controllers\Home;


use App\Models\Comment;

class CommentController extends BaseController
{

    public function __construct(Comment $comment)
    {
        parent::__construct();
        $this->comment = $comment;
    }

    public function postAddComment(){
         $res = $this->comment->addComment(request());
         return ajax_return($res);
    }
}
